home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 108 / MacAddict108.iso / Software / Internet & Communication / Wirecast 2.0.dmg / Wirecast.app / Contents / Resources / StandardSuite.sdef < prev    next >
Encoding:
Extensible Markup Language  |  2005-05-25  |  7.5 KB  |  185 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE dictionary SYSTEM "file://localhost/System/Library/DTDs/sdef.dtd">
  3.  
  4. <!--
  5.     This is Foundation Kit's NSCoreSuite terminology recast as an sdef.  NSCoreSuite
  6.     is itself AppleScript's Standard Suite recast as a plist instead of the original
  7.     aete.  There are several differences between the original Standard Suite and
  8.     Cocoa's version of it, and not all of them are correct: these places are noted
  9.     with "supposed to" comments.
  10. -->
  11.  
  12. <dictionary title="Standard Terminology">
  13.     <suite name="Standard Suite" code="????" description="Common classes and commands for most applications.">
  14.         <cocoa name="NSCoreSuite"/>
  15.         <classes>
  16.             <class name="item" code="cobj" description="A scriptable object.">
  17.                 <cocoa class="AbstractObject"/>
  18.                 <properties>
  19.                     <property name="class" code="pcls" type="type" access="r" description="The class of the object.">
  20.                         <cocoa key="classCode"/>
  21.                     </property>
  22.                     <property name="properties" code="pALL" type="record" description="All of the object's properties.">
  23.                         <cocoa key="scriptingProperties"/>
  24.                     </property>
  25.                 </properties>
  26.             </class>
  27.             <class name="application" code="capp" description="An application's top level scripting object.">
  28.                 <cocoa class="NSApplication"/>
  29.                 <elements>
  30.                     <element type="document" access="rw">
  31.                         <cocoa key="orderedDocuments"/>
  32.                     </element>
  33.                     <element type="window" access="r">
  34.                         <cocoa key="orderedWindows"/>
  35.                     </element>
  36.                 </elements>
  37.                 <properties>
  38.                     <property name="name" code="pnam" type="string" access="r" description="The name of the application.">
  39.                         <cocoa key="nameProperty"/>
  40.                     </property>
  41.                     <property name="frontmost" code="pisf" type="boolean" access="r" description="Is this the frontmost (active) application?">
  42.                         <cocoa key="isActive"/>
  43.                     </property>
  44.                     <property name="version" code="vers" type="string" access="r" description="The version of the application.">
  45.                         <cocoa key="versionProperty"/>
  46.                     </property>
  47.                 </properties>
  48.                 <responds-to-commands>
  49.                     <responds-to name="open">
  50.                         <cocoa method="handleOpenScriptCommand:"/>
  51.                     </responds-to>
  52.                     <!--
  53.                     <responds-to name="print">
  54.                         <cocoa method="handlePrintScriptCommand:"/>
  55.                     </responds-to>
  56.                     -->
  57.                     <responds-to name="quit">
  58.                         <cocoa method="handleQuitScriptCommand:"/>
  59.                     </responds-to>
  60.                 </responds-to-commands>
  61.             </class>
  62.             <class name="color" code="colr" description="A color.">
  63.                 <cocoa class="NSColor"/>
  64.             </class>
  65.             <class name="document" code="docu" description="A document.">
  66.                 <cocoa class="NSDocument"/>
  67.                 <properties>
  68.                     <property name="path" code="ppth" type="string" description="The document's path.">
  69.                         <cocoa key="fileName"/>
  70.                     </property>
  71.                     <property name="modified" code="imod" type="boolean" access="r" description="Has the document been modified since the last save?">
  72.                         <cocoa key="isDocumentEdited"/>
  73.                     </property>
  74.                     <property name="name" code="pnam" type="string" description="The document's name.">
  75.                         <cocoa key="lastComponentOfFileName"/>
  76.                     </property>
  77.                 </properties>
  78.                 <responds-to-commands>
  79.                     <responds-to name="close">
  80.                         <cocoa method="handleCloseScriptCommand:"/>
  81.                     </responds-to>
  82.                     <!--
  83.                     <responds-to name="print">
  84.                         <cocoa method="handlePrintScriptCommand:"/>
  85.                     </responds-to>
  86.                     -->
  87.                     <responds-to name="save">
  88.                         <cocoa method="handleSaveScriptCommand:"/>
  89.                     </responds-to>
  90.                 </responds-to-commands>
  91.             </class>
  92.             <class name="window" code="cwin" description="A window.">
  93.                 <cocoa class="NSWindow"/>
  94.                 <properties>
  95.                     <property name="name" code="pnam" type="string" description="The full title of the window.">
  96.                         <cocoa key="title"/>
  97.                     </property>
  98.                     <property name="id" code="ID  " type="integer" access="r" description="The unique identifier of the window.">
  99.                         <cocoa key="uniqueID"/>
  100.                     </property>
  101.                     <property name="bounds" code="pbnd" type="rectangle" description="The bounding rectangle of the window.">
  102.                         <cocoa key="boundsAsQDRect"/>
  103.                     </property>
  104.                     <property name="document" code="docu" type="document" access="r" description="The document whose contents are being displayed in the window."/>
  105.                     <property name="closeable" code="hclb" type="boolean" access="r" description="Whether the window has a close box.">
  106.                         <cocoa key="hasCloseBox"/>
  107.                     </property>
  108.                     <property name="titled" code="ptit" type="boolean" access="r" description="Whether the window has a title bar.">
  109.                         <cocoa key="hasTitleBar"/>
  110.                     </property>
  111.                     <property name="index" code="pidx" type="integer" description="The index of the window in the back-to-front window ordering.">
  112.                         <!-- the type is supposed to be "integer" -->
  113.                         <cocoa key="orderedIndex"/>
  114.                     </property>
  115.                     <property name="floating" code="isfl" type="boolean" access="r" description="Whether the window floats.">
  116.                         <cocoa key="isFloatingPanel"/>
  117.                     </property>
  118.                     <property name="miniaturizable" code="ismn" type="boolean" access="r" description="Whether the window can be miniaturized.">
  119.                         <cocoa key="isMiniaturizable"/>
  120.                     </property>
  121.                     <property name="miniaturized" code="pmnd" type="boolean" description="Whether the window is currently miniaturized.">
  122.                         <cocoa key="isMiniaturized"/>
  123.                     </property>
  124.                     <property name="modal" code="pmod" type="boolean" access="r" description="Whether the window is the application's current modal window.">
  125.                         <cocoa key="isModalPanel"/>
  126.                     </property>
  127.                     <property name="resizable" code="prsz" type="boolean" access="r" description="Whether the window can be resized.">
  128.                         <cocoa key="isResizable"/>
  129.                     </property>
  130.                     <property name="visible" code="pvis" type="boolean" description="Whether the window is currently visible.">
  131.                         <cocoa key="isVisible"/>
  132.                     </property>
  133.                     <property name="zoomable" code="iszm" type="boolean" access="r" description="Whether the window can be zoomed.">
  134.                         <cocoa key="isZoomable"/>
  135.                     </property>
  136.                     <property name="zoomed" code="pzum" type="boolean" description="Whether the window is currently zoomed.">
  137.                         <cocoa key="isZoomed"/>
  138.                     </property>
  139.                 </properties>
  140.                 <responds-to-commands>
  141.                     <responds-to name="close">
  142.                         <cocoa method="handleCloseScriptCommand:"/>
  143.                     </responds-to>
  144.                     <!--
  145.                     <responds-to name="print">
  146.                         <cocoa method="handlePrintScriptCommand:"/>
  147.                     </responds-to>
  148.                     -->
  149.                     <responds-to name="save">
  150.                         <cocoa method="handleSaveScriptCommand:"/>
  151.                     </responds-to>
  152.                 </responds-to-commands>
  153.             </class>
  154.         </classes>
  155.         <commands>
  156.             <!-- The old Standard Suite: run, reopen, open, print, and quit. -->
  157.             <command name="open" code="aevtodoc" description="Open an alias.">
  158.                 <direct-parameter type="file" description="The alias to be opened."/>
  159.             </command>
  160.             
  161.             <command name="print" description="Print an object." code="aevtpdoc">
  162.                 <!-- type would be better written as "file | document". -->
  163.                 <direct-parameter type="file" description="The file(s) or document(s) to be printed."/>
  164.             </command>
  165.  
  166.             <command name="quit" code="aevtquit" description="Quit an application.">
  167.             </command>
  168.  
  169.             <!-- "get" is supposed to be hidden. -->
  170.             <command name="get" code="coregetd" description="Get the data for an object.">
  171.                 <direct-parameter type="any"/>
  172.                 <result type="any"/>
  173.             </command>
  174.             
  175.             <!-- "set" is supposed to be hidden. -->
  176.             <command name="set" code="coresetd" description="Set an object's data.">
  177.                 <direct-parameter type="any"/>
  178.                 <parameter name="to" code="data" type="any" description="The new value.">
  179.                     <cocoa key="Value"/>
  180.                 </parameter>
  181.             </command>
  182.         </commands>
  183.     </suite>
  184. </dictionary>
  185.